#ifndef DLG_SETTING_H
#define DLG_SETTING_H

#include <QDialog>
#include <QDebug>
#include <QtNetwork/QNetworkInterface>

namespace Ui {
class Dlg_Setting;
}

class Dlg_Setting : public QDialog
{
    Q_OBJECT

public:
    explicit Dlg_Setting(QWidget *parent = nullptr);
    ~Dlg_Setting();

    virtual void showEvent(QShowEvent *event);

    QString getLocalIP();
    QString getServerIP();
    QString getName();

    int getServerPort();
signals:
    void cnt();
private slots:
    void on_btn_ok_clicked();

    void on_btn_cancel_clicked();

private:
    Ui::Dlg_Setting *ui;
};

#endif // DLG_SETTING_H
